<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <div class="wrapper clearfix">
        <div class="clearfix" id="top"><h1 class="fl"><a href="${pageContext.request.contextPath}/index/base"><img src="${pageContext.request.contextPath}/img/logo.png"/></a></h1>
            <div class="fr clearfix" id="top1"><p class="fl">
                <c:if test="${sessionScope.user.user_Name==null}">
                    <a href="${pageContext.request.contextPath}/pages/login.jsp" id="login">登录</a><a href="${pageContext.request.contextPath}/pages/regesite.jsp" id="reg">注册</a>
                </c:if>
                <c:if test="${sessionScope.user.user_Name!=null}">
                    你好,<a>${sessionScope.user.user_Nickname}</a>
                </c:if>
            </p>
                <form action="#" method="get" class="fl"><input type="text" placeholder="热门搜索：华为"/><input
                        type="button"/></form>
                <div class="btn fl clearfix">
                    <c:if test="${sessionScope.user.user_Name!=null}">
                    <a href="${pageContext.request.contextPath}/index/mydata"><img src="${pageContext.request.contextPath}/img/grzx.png"/></a>
                        <a href="${pageContext.request.contextPath}/index/findcart">
                            <img src="${pageContext.request.contextPath}/img/gwc.png"/>
                        </a>
                    </c:if>
                </div>
            </div>
        </div>
        <ul class="clearfix" id="bott">
            <li><a href="${pageContext.request.contextPath}/index/base">首页</a></li>
            <c:forEach var="f" items="${flist}">
                <li>
                    <a href="${pageContext.request.contextPath}/index/selectproduct?fid=${f.cate_id}">${f.cate_name}</a>
                        <div class="sList2">
                            <div class="clearfix">
                                <c:forEach var="c" items="${clist}">
                                    <c:if test="${c.cate_parent_id==f.cate_id}">
                                        <a href="${pageContext.request.contextPath}/index/selectproduct?cid=${c.cate_id}">${c.cate_name}</a>
                                    </c:if>
                                </c:forEach>
                            </div>
                        </div>
                </li>
            </c:forEach>
        </ul>
    </div>